'use strict';

const BaseController = require('../base');
const os = require('os');
const fs = require('fs');
const path = require('path');

class ExampleController extends BaseController {
    async startRun() {
        const { ctx, service } = this;
        const data = ctx.request.body;
        let ret = await service.example.startRun(data.step_size, data.mockData);
        this.sendSuccess(ret);
    }

    async stepRun() {
        const { ctx, service } = this;
        const data = ctx.request.body;
        let ret = await service.example.stepRun(data.sample, data.sortInfo);
        this.sendSuccess(ret);
    }
}

module.exports = ExampleController;
